<template>
  <!-- 车辆图片替换删除 -->
  <view>
    <view class="imgsSelection">
      <view class="status_bar">
        <!-- 这里是状态栏 -->
      </view>
      <u-toast ref="uToast"/>
      <view class="heads flex flex-ai-c">
        <view class="fanhuibtn" @click="fanhui">
          <u-icon name="arrow-left" color="#9A9A9A" size="34rpx"></u-icon>
        </view>
        <view class="iconsThD flex flex-jc-fe">
          <view class="tihuan flex" @click="replace">
            <i-icon icon="icontihuan" type="single" size="44rpx" color="#FFFFFF"></i-icon>
            <view class="tihtext">替换</view>
          </view>
          <view class="tihuan flex" @click="deleteC">
            <view class="tihtext">删除</view>
            <i-icon icon="iconlajitong" type="single" size="44rpx" color="#FFFFFF"></i-icon>
          </view>
        </view>
      </view>
      <view class="swimg flex flex-ai-c">
        <swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :current="carIndex" @change="carchangge">
          <swiper-item class="123" v-for="(item,index) in carImageS" :key="index">
            <image class="carimg" :src="item.img" mode="aspectFill"></image>
            {{index}}
          </swiper-item>
        </swiper>
      </view>
    </view>
    <!-- 图片选择-->
    <u-popup v-model="showimg" mode="bottom" length="36%" border-radius="30">
      <view class="hgzbox">
        <view class="imgtexts">
          选择图片上传方式
        </view>
        <view class="sucai flex">
          <view class="sucaitext" @click="UploadimgGF(0)">
            官方素材
          </view>
          <view class="sucaitext" @click="UploadimgPT(1)">
            平台素材
          </view>
        </view>
        <view class="hgxz" @click="UploadIDcardImg(3)">
          相册
        </view>
        <view class="hgxz" @click="UploadIDcardpaishe(0)">
          拍摄
        </view>
      </view>
    </u-popup>
  </view>
</template>

<script src="./vehiclePictureSelect.js"></script>
<style lang="scss" scoped>
  @import './vehiclePictureSelect.scss';
</style>
